package pub.xspace.nova.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import pub.xspace.nova.system.domain.SysResource;

/**
 * 资源管理 Mapper接口
 * 
 * @author HeJianrong
 */
@Mapper
public interface SysResourceMapper {

	@Select("select res.* from t_sys_resource res left join t_sys_role_resource rr on res.id=rr.resource_id left join t_sys_user_role ur on rr.role_id=ur.role_id where ur.user_id=#{userId}")
	List<SysResource> selectResourcesByUserId(String userId);
}
